-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: application watch opts #7
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: pashavictorovich <[email protected]>
Signed-off-by: pashavictorovich <[email protected]> # Conflicts: # OWNERS
Signed-off-by: pashavictorovich <[email protected]>
Signed-off-by: pashavictorovich <[email protected]>
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (c312ef3)
|
/review |
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
Code feedback:
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
/describe |
PR-Agent was enabled for this repository, but no eligible user found. Please link your git user with your CodiumAI identity here. |
/improve |
PR-Agent was enabled for this repository, but no eligible user found. Please link your git user with your CodiumAI identity here. |
/describe |
PR Description updated to latest commit (c312ef3)
|
/improve |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
/ask what this pr is solving ? |
Question: what this pr is solving ? Answer: The PR also introduces a new function This PR is solving the problem of handling multiple watch options in a more structured and efficient way. It improves the code quality by reducing redundancy and enhancing readability. ✨ Ask tool usage guide:Overview:
Note that the tool does not have "memory" of previous questions, and answers each question independently.
See the ask usage page for a comprehensive guide on using this tool. |
User description
Checklist:
Type
enhancement
Description
watchOpts
to consolidate watch options for applications, enhancing code readability and maintainability.watchOpts
struct, reducing the complexity of function signatures.Changes walkthrough
app.go
Refactor Application Watch Options into Struct
cmd/argocd/commands/app.go
watchOpts
struct to consolidate watch options.NewApplicationWaitCommand
to usewatchOpts
instead ofindividual flags.
getWatchOpts
function to set default watch options when none arespecified.
waitOnApplicationStatus
andcheckResourceStatus
functions toutilize
watchOpts
.app_test.go
Add Tests for Application Watch Options Refactoring
cmd/argocd/commands/app_test.go
watchOpts
.